// import './assets/main.css'
// import { useCountStore } from "@/store/count";
import { createApp } from 'vue'
// 小菠萝
import { createPinia } from 'pinia'
import App from './App.vue'
import router from './router'

// UI库
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// UI配套图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 创建小菠萝实例
const pinia = createPinia()
const app = createApp(App)

for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
import zhCn from "element-plus/es/locale/lang/zh-cn"

// 修改分页器默认文字
zhCn.el.pagination.total = "总共：" + `{total}` + "条"
zhCn.el.pagination.goto = "跳转至"

app.use(pinia)
app.use(ElementPlus, { locale: zhCn })
app.use(router)
// const userStore = useCountStore()
app.mount('#app')
